package com.iooiee.builder_pattern.controller;

import com.iooiee.builder_pattern.builder.AbstractActorBuilder;
import com.iooiee.builder_pattern.Actor;


/**
 * 后续会优化掉这个类
 * 游戏角色创建控制器 ： 指挥者
 */

public class ActorController {
    //逐步构建复杂产品对象
    public Actor contruct(AbstractActorBuilder aab){
        Actor actor;
        aab.buildType();
        aab.buildSex();
        aab.buildFace();
        aab.buildCostume();
        aab.buildHairstyle();
        actor = aab.construct();
        return actor;
    }

}
